const _toString = Object.prototype.toString

/**
 * @description: 判断类型
 * @param {*} value
 * @return {string} 'Object' | 'Array' | ...
 */
export function toRawType(value) {
  return _toString.call(value).slice(8, -1)
}

/**
 * @description: 设置 html title 标题
 * @param {*} title
 * @return {*}
 */
export function setDocumentTitle(title) {
  document.title = title
}
